package com.ms.client.monitor.api.service;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.ms.client.monitor.api.pojo.BizLog;
import com.ms.msclient.MsClient;
import com.ms.msclient.MsClientResponse;

@MsClient(value="${service.id.monitor}", defalut="ms-cloud-monitor")
public interface MonitorApiBizLogService {

	/**
	 * 保存日志
	 * @param traceId		必传。
	 * @param reqParam1
	 * @param reqParam2
	 * @param reqParam3
	 * @param reqTime		必传。格式：yyyy-MM-dd HH:mm:ss
	 * @param dtlString		必传。
	 * @return
	 */
	@RequestMapping(value = "/api/bizLog/save")
	public MsClientResponse<BizLog> save(@RequestParam("traceId")String traceId,
			@RequestParam("reqParam1")String reqParam1,
			@RequestParam("reqParam2")String reqParam2,
			@RequestParam("reqParam3")String reqParam3,
			@RequestParam("reqTime")String reqTime,
			@RequestParam("dtlString")String dtlString
			);
	/**
	 * 查询链路
	 * @param code
	 * @return
	 */
	@RequestMapping(value = "/api/bizLog/get")
	public MsClientResponse<BizLog> get(@RequestParam("traceId")String traceId);

}
